package so.sao.shop.supplier.pojo.output;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by acer on 2017/9/13.
 */
public class CommAppOutput{
    /**
     * ID
     */
    private Long id;
    /**
     * supplierId
     */
    private Long supplierId;
    /**
     * 缩略图
     */
    private String minImg;
    /**
     * 商品条码
     */
    private String code69;
    /**
     * 商品商家编码
     */
    private String code;
    /**
     * 商品产地
     */
    private String originPlace;
    /**
     * 商品品牌名称
     */
    private String brandName;
    /**
     * 商品名称
     */
    private String commName;

    /**
     * 商品标签
     */
    private String tagName;
    /**
     * 商品单位名称
     */
    private String unitName;
    /**
     * 计量规格名称
     */
    private String measureSpecName;

    /**
     * 规格值
     */
    private String ruleVal;
    /**
     * 市场价
     */
    private BigDecimal price;
    /**
     * 成本价
     */
    private BigDecimal unitPrice;
    /**
     * 库存
     */
    private Double inventory;

    /**
     * 供应商名称
     */
    private String providerName;

    /**
     * 合同注册地址市编码
     */
    private String contractRegisterAddressCity;

    /**
     * 合同注册地址市名称
     */
    private String contractRegisterAddressCityName;

    /**
     *  创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createdAt;
    /**
     *  更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updatedAt;

    /**
     *  是否失效，0-失效，1-正常
     */
    private int invalidStatus;

    /**
     * 商品销量
     */
    private  Integer saleNum;

    /**
     * 最小起订量
     */
    private Integer minOrderQuantity;

    /**
     *  1 类科属名称
     */
    private String categoryOneName;

    /**
     * 二类科属名称
     */
    private String categoryTwoName;

    /**
     *三类科属名称
     */
    private String categoryThreeName;

    /**
     * 生产日期
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date productionDate;

    /**
     *有效期
     */
    private Integer guaranteePeriod;

    /**
     * 有效期单位
     */
    private String guaranteePeriodUnit;

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMinImg() {
        return minImg;
    }

    public void setMinImg(String minImg) {
        this.minImg = minImg;
    }

    public String getCode69() {
        return code69;
    }

    public void setCode69(String code69) {
        this.code69 = code69;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOriginPlace() {
        return originPlace;
    }

    public void setOriginPlace(String originPlace) {
        this.originPlace = originPlace;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getMeasureSpecName() {
        return measureSpecName;
    }

    public void setMeasureSpecName(String measureSpecName) {
        this.measureSpecName = measureSpecName;
    }

    public String getRuleVal() {
        return ruleVal;
    }

    public void setRuleVal(String ruleVal) {
        this.ruleVal = ruleVal;
    }

    public Double getInventory() {
        return inventory;
    }

    public void setInventory(Double inventory) {
        this.inventory = inventory;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public int getInvalidStatus() {
        return invalidStatus;
    }

    public void setInvalidStatus(int invalidStatus) {
        this.invalidStatus = invalidStatus;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getContractRegisterAddressCity() {
        return contractRegisterAddressCity;
    }

    public void setContractRegisterAddressCity(String contractRegisterAddressCity) {
        this.contractRegisterAddressCity = contractRegisterAddressCity;
    }

    public String getContractRegisterAddressCityName() {
        return contractRegisterAddressCityName;
    }

    public void setContractRegisterAddressCityName(String contractRegisterAddressCityName) {
        this.contractRegisterAddressCityName = contractRegisterAddressCityName;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getMinOrderQuantity() {
        return minOrderQuantity;
    }

    public void setMinOrderQuantity(Integer minOrderQuantity) {
        this.minOrderQuantity = minOrderQuantity;
    }

    public String getCategoryTwoName() {
        return categoryTwoName;
    }

    public void setCategoryTwoName(String categoryTwoName) {
        this.categoryTwoName = categoryTwoName;
    }

    public String getCategoryThreeName() {
        return categoryThreeName;
    }

    public void setCategoryThreeName(String categoryThreeName) {
        this.categoryThreeName = categoryThreeName;
    }

    public String getCategoryOneName() {
        return categoryOneName;
    }

    public void setCategoryOneName(String categoryOneName) {
        this.categoryOneName = categoryOneName;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public Integer getGuaranteePeriod() {
        return guaranteePeriod;
    }

    public void setGuaranteePeriod(Integer guaranteePeriod) {
        this.guaranteePeriod = guaranteePeriod;
    }

    public String getGuaranteePeriodUnit() {
        return guaranteePeriodUnit;
    }

    public void setGuaranteePeriodUnit(String guaranteePeriodUnit) {
        this.guaranteePeriodUnit = guaranteePeriodUnit;
    }
}
